package com.xone.collaboration.web;

import com.xone.collaboration.common.Result;
import com.xone.collaboration.service.OperationService;
import com.xone.collaboration.service.PushService;
import com.xone.collaboration.service.vo.OperationResult;
import com.xone.collaboration.service.vo.OperationVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@Slf4j
public class OperationController {

    @Autowired
    private OperationService operationService;

    @PostMapping("/op")
    public OperationResult op(@RequestBody OperationVO operationVO){
        return operationService.operate(operationVO);
    }
}
